package com.secsys.service;

import java.util.List;

import com.secsys.model.TbBbsMessage;

/**
 * @Description  短消息业务逻辑接口
 * @author LiusQ
 *
 */
public interface MessageService extends Service<TbBbsMessage, Integer> {
      public void addMsg(TbBbsMessage message);
      public List queryMsgList(int userId,String userStatue);
      public List queryHistorySendMsgList(int userId,String userStatue); 
      public void delMsg(TbBbsMessage t);
      public boolean validateMsgAuthor(int userId,int msgId);
      public boolean validateMsgRecevier(int recevierId,int msgId);
      public TbBbsMessage getTbBbsMessage(int id);
}
